projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa22218
)
themingbackground: Outset shadows require border box
author
Benjamin Otte
<otte@redhat.com>
Fri, 23 May 2014 17:27:53 +0000
(19:27 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 23 May 2014 17:29:27 +0000
(19:29 +0200)
They are drawn relative to the border box, not relative to the padding
box.
gtk/gtkthemingbackground.c
patch
|
blob
|
history
diff --git
a/gtk/gtkthemingbackground.c
b/gtk/gtkthemingbackground.c
index 706752b082431adc01175140c512e9fc2ed50a2f..380eb5ad1ee694d28f7d10a4229492fb2d11a18e 100644
(file)
--- a/
gtk/gtkthemingbackground.c
+++ b/
gtk/gtkthemingbackground.c
@@
-270,7
+270,7
@@
_gtk_theming_background_apply_shadow (GtkThemingBackground *bg,
{
_gtk_css_shadows_value_paint_box (_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BOX_SHADOW),
cr,
-
&bg->padding
_box,
+
inset ? &bg->padding_box : &bg->border
_box,
inset);
}